package pattern12;

/**
 * @author wdl
 */
public class ConcreteStateB implements IState {
    @Override
    public void doAction(Context context) {
        System.out.println("this is ConcreteStateB");
        //设置ConcreteStateB的下一个状态是ConcreteStateA
        context.setState(new ConcreteStateA());
    }
}
